package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

/**
 * @author xiaycbstart
 * @create 2019 12 30 14:37
 */
public interface UserService {
    User findByUsername(String username);

    LinkedHashSet<Menu> findMenuListByUsername(String username);

    PageResult pageQuery(QueryPageBean queryPageBean);

    void deleteByIds(String ids);

    void add(User user, Integer[] roleIds);

    Integer[] findRoleIdsByUserId(Integer id);

    void update(User user, Integer[] roleIds);

    void delete(Integer id);
}
